package com.seehn.web.mypackage;


import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;




public class MyDemo implements XdClass{
    @Override
    public void xd() {

    }

    private int age=1;
    private int age1=1;
    private int age2=1;
    private int age3=1;

    public int getAge1() {
        return age1;
    }

    public void setAge1(int age1) {
        this.age1 = age1;
    }

    public int getAge2() {
        return age2;
    }

    public void setAge2(int age2) {
        this.age2 = age2;
    }

    public int getAge3() {
        return age3;
    }

    public void setAge3(int age3) {
        this.age3 = age3;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    ArrayList a=new ArrayList();
    HashMap<Object,Object> g =new HashMap();
    HashSet<Object> s= new HashSet<>();

    public static void main(String[] args) {
        int s=2;
        System.out.println("s = " + s);
        for (int i = 0; i <12 ; i++) {
            System.out.println("i = " + i);
            if(i==6){
                throw new NullPointerException("空指针异常");
            }
        }
        myAp();
        System.out.println("-____-");

    }

    private static void myAp() {
        String d="d";
        if (d != null) {
            System.out.println("d = " + d);

        }
    }

}
